#include "rtda/frame.h"

namespace jvm {
namespace rtda {

LocalVars& Frame::getLocalVars() {
    return _local_vars;
}

std::shared_ptr<OperandStack> Frame::getOperandStack() {
    return _p_operand_stack;
}

std::shared_ptr<Thread> Frame::getThread() {
    return _p_thread.lock();
}
void Frame::setThread(std::weak_ptr<Thread> thread) {
    _p_thread = thread;
}

uint32_t Frame::getNextPC() const {
    return _next_pc;
}
void Frame::setNextPC(uint32_t next_pc) {
    _next_pc = next_pc;
}

} // namespace rtda
} // namespace jvm
